package com.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.pojo.Score;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxy
 * @since 2023-10-13 10:29:15
 */
@Mapper
public interface ScoreDao extends BaseMapper<Score> {

    List<Score> selectListByReaderId(Long readerId);

    List<Score> ScoreRanking();

    Score Scoreaverage(Long bookId);
}
